package com.zxd.enums;

/**
 * ClassName:Test
 * Package:com.zxd.enums
 *
 * @Date:2023/9/21 16:36
 * @Author:zxde
 */
public class Test {
    public static void main(String[] args) {
        //MyEnum myEnum = new MyEnum(); 枚举类构造器是私有的无法创建对象

        MyEnum myEnum = MyEnum.valueOf("X");
        System.out.println(myEnum);
    }
}
